import React, {Component, PropTypes} from 'react'
import { connect } from 'react-redux'
import { Router, Route, Redirect, IndexRoute, hashHistory } from 'react-router'

import wrapper from '../../wrapper';
import root from '../component/root';
import profile from '../component/profile';
import password from '../component/password';


const RouteConfig = (
    <Router history={hashHistory}>
        <Route component={wrapper} currentPage='sendpost' >
            <Route component={root}>
                <IndexRoute component={profile} />
                <Route path="/index" component={profile} />
                <Route path="/password" component={password} />
            </Route>
        </Route>
        <Redirect from='*' to='/index'  />
    </Router>
);

export default RouteConfig;